/**
 * @description 帮助persist插件持久化
 * @param {*} keys
 */
export function storePersist(keys) {
    if (keys?.length) {
        return {
            enabled: true,
            strategies: [
                {
                    storage: window?.localStorage,
                    paths: ['themeIndex'],
                },
            ],
        }
    } else {
        return {
            enabled: false,
        }
    }
}
